﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace Asptcp
{
    public class MessageHead
    {
        /// <summary>
        /// 消息头标识 0x99FF
        /// </summary>
        [JsonPropertyName("sn")]
        public uint Sign { get; set; }
        /// <summary>
        /// 客户端Id
        /// </summary>
        [JsonPropertyName("cid")]
        public uint ClientId { get; set; }
        /// <summary>
        /// 命令Id
        /// </summary>
        [JsonPropertyName("cmd")]
        public uint Command { get; set; }
        /// <summary>
        /// 消息长度
        /// </summary>
        [JsonPropertyName("bl")]
        public uint BodyLength { get; set; }
        //可能需要时间戳
    }
}
